//
//  HomePageCell.m
//  WANNA
//
//  Created by 请叫我灬阿文 on 16/5/4.
//  Copyright © 2016年 浮夸. All rights reserved.
//

#import "HomePageCell.h"
#import "ImageDownloader.h"
#import "UIImageView+WebCache.h"
@interface HomePageCell ()
@property (weak, nonatomic) IBOutlet UIImageView *image;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *subtitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *summaryLabel;

@end

@implementation HomePageCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)layoutSubviews {
    self.titleLabel.text = self.model.title;

    self.summaryLabel.text = self.model.summary;
    [self.image dt_setImageWithUrl:[NSURL URLWithString:self.model.image]];
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
